﻿using NHibernate.Mapping;
using NHibernate.Mapping.Attributes;
using System;
using System.Xml.Serialization;

namespace IceZero.DataStore.Models
{
    [Class(Table = "IceZero_Cat")]//定义数据库表名
    [Serializable]
    public class Cat:ModelBase
    {
        public Cat():base(genIdAuto:true)
        {

        }
        /// <summary>
        /// 编号
        /// </summary>
        [Property(Column = "Code")]
        public virtual long Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Property(Column = "Name")]
        public virtual string Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Property(Column = "Sex")]
        public virtual string Sex { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Weight")]
        public virtual float Weight { get; set; }
    }
}
